package jmm;

import java.io.FileWriter;

public class Test {
    public static void main(String[] args) throws Exception{
        System.out.println("Test main method is running");
        String maxMem="Test maxMemory:"+Runtime.getRuntime().maxMemory();
        System.out.println(maxMem);
        FileWriter fileWriter = new FileWriter("d:\\io.txt");
        fileWriter.write(maxMem);
        fileWriter.flush();
        fileWriter.close();
        while (true) {

        }
    }
}
